package com.flipdf2.render;

import java.io.File;

public abstract class Render {

	public static final String SUN_PDF = "sun_pdf";
	public static final String PS = "ps";

	public static Render sunPDFRender;

	public static Render createRender(String source) {
		if (source.equalsIgnoreCase(SUN_PDF)) {
			if (sunPDFRender == null) {
				sunPDFRender = new SunPDFRender();
			}
			return sunPDFRender;
		}
			
		return null;
	}

	public abstract void openFile(File file) throws RenderException;

	public abstract RenderedPage getPage(int pageNo);
}
